Logical Relations as Types